package com.onedec.materials.mapper;

import com.onedec.materials.entity.OnedecMaterial;
import com.onedec.materials.entity.OnedecMaterialExample;

import java.io.File;
import java.util.List;
import java.util.Map;

import com.qiniu.http.Response;
import org.apache.ibatis.annotations.Param;

public interface OnedecMaterialMapper {
    long countByExample(OnedecMaterialExample example);

    int deleteByExample(OnedecMaterialExample example);

    int deleteByPrimaryKey(Integer materialId);

    int insert(OnedecMaterial record);

    int insertSelective(OnedecMaterial record);

    List<OnedecMaterial> selectByExample(OnedecMaterialExample example);

    OnedecMaterial selectByPrimaryKey(Integer materialId);

    int updateByExampleSelective(@Param("record") OnedecMaterial record, @Param("example") OnedecMaterialExample example);

    int updateByExample(@Param("record") OnedecMaterial record, @Param("example") OnedecMaterialExample example);

    int updateByPrimaryKeySelective(OnedecMaterial record);

    int updateByPrimaryKey(OnedecMaterial record);

    List<OnedecMaterial> selectNameandModel(Map<String, Object> map);

    List<Map<String,Object>> selectInTable(Map<String, Object> map);


    List<Map<String,Object>> selectmAndp();

    /**
     * 查询项目所需要的材料
     * @param materialId
     * @return
     */
    List<Map<String,Object>> findBymAndp(int materialId);
}